<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>城市管理</title>
    <hdjs/>
    <bootstrap/>
    <!-- <css file="__STATIC__/css/common.css"/> -->
    <js file="__CONTROLLER_VIEW__/Js/js.js">
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>
            <td width="50">id</td>
            <td width="180">城市名</td>
            <td width="180">pid</td>
            <td width="180">首字母</td>
            <td width="150">操作</td>
        </tr>
        </thead>
        <tbody>
        <foreach from="$cityData" value="$v">          
            <tr>
                <form action="{|U:'City/edit'}" method="post" class="submit">
                    <td width="50">{$v.ctid}<input type="hidden" name="ctid" value="{$v.ctid}"/></td>              
                    <td width="180">
                        <span>{$v._name}</span>
                        <input type="text" name="cityname" value="{$v._name}" class="yin_name" style="float:left;display:none;"/>
                    </td>
                    <td width="180">
                        <span>{$v.ct_pid}</span>
                        <input type="text" name="ct_pid" value="{$v.ct_pid}" class="yin_pid" style="float:left;display:none;"/>
                    </td>
                    <td width="180">
                        <span>{$v.first}</span>
                        <input type="text" name="first" value="{$v.first}" class="yin_first" style="float:left;display:none;"/>
                    </td>        
                    <td width="150">
                        <a href="javascript:;" class="btn btn-primary btn-xs edit-tag">编辑</a>
                        <a href="javascript:;" class="btn btn-success btn-xs submit-tag" style="display:none">保存</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs" onclick="if(confirm('确定要删除么？'))location.href='{|U:'City/del',array('ctid'=>$v['ctid'])}'">删除</a>
                    </td>                
                </form>     
            </tr>          
        </foreach>
        </tbody>
    </table>
    <div class="page_hdjob">
      
    </div>
</div>

</body>
</html>


